import request from '@/utils/request'

// 查询还款子表列表
export function listDealRepayment(query) {
  return request({
    url: '/repayment/dealRepayment/list',
    method: 'get',
    params: query
  })
}

// 查询还款子表列表
export function listByServingId(servingId) {
    return request({
        url: '/repayment/dealRepayment/byServingId/list/' + servingId,
        method: 'get'
    })
}

// 查询还款子表详细
export function getDealRepayment(id) {
  return request({
    url: '/repayment/dealRepayment/' + id,
    method: 'get'
  })
}

// 保存还款子表
export function saveDealRepayment(data) {
  return request({
    url: '/repayment/dealRepayment/save',
    method: 'post',
    data: data
  })
}

// 删除还款子表
export function delDealRepayment(id) {
  return request({
    url: '/repayment/dealRepayment/' + id,
    method: 'delete'
  })
}

// 导出还款子表
export function exportDealRepayment(query) {
  return request({
    url: '/repayment/dealRepayment/export',
    method: 'get',
    params: query
  })
}
